<cfparam name="Fund_Survey_ID" type="integer" default="0" />
<cfparam name="returnView" type="string" default="funds" />
<cfparam name="passback" type="string" default="" />

<cfscript>
	fundSurveyGateway = new assets.calgrants.com.gateway.FundSurvey2014Gateway();
	fundSurvey = fundSurveyGateway.get(Fund_Survey_ID = Fund_Survey_ID);
</cfscript>

<cfif fundSurvey.getFund_Survey_ID() gt 0>
	<cfscript>
		base = new assets.calgrants.com.Base();
		passbackQueryString = base.passbackToQueryString(passback);
		organizationGateway = new assets.calgrants.com.gateway.OrganizationGateway();
		organization = organizationGateway.get(Organization_ID = fundSurvey.getOrganization_ID());
		userGateway = new assets.calgrants.com.gateway.UserGateway();
		submittedBy = userGateway.get(User_ID = fundSurvey.getSubmitted_By_ID());
	</cfscript>
	<script type="text/javascript" language="javascript">
	<!--
		$(function() {
			$("#fundSurveyModal").modal();
			resizeModal("fundSurveyModal");
		})
	//-->
	</script>
	<style type="text/css">
		.slim-col {
			width: 70px;
		}
		.grid-table {
			width: 1010px;
		}
		.q {
			padding-bottom: 10px;
		}
		.text-well {
			width: 780px;
		}
		.ta {
			width: 780px;
			height: 100px;
		}
	</style>
	<cfoutput>
		<div id="fundSurveyModal" class="modal modal-fullscreen" data-backdrop="static">
			<div class="modal-header">
				<h3>Organizer Exit Survey</h3>
			</div>
			<div class="modal-body">
				<div class="container-fluid">
					<!--- Survey --->
					<div class="row-fluid">
						<div class="span12">
							<cfinclude template="/assets/calgrants/ui/details/fundSurvey#ListLast(fundSurvey.getProgram_Year(), '-')#.cfm">				
						</div>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<a href="?view=#returnView#&#passbackQueryString#" class="btn btn-success">Close</a>
			</div>
		</div>
	</cfoutput>
<cfelse>
	<div class="alert alert-info notFound">Organizer Exit Survey not found</div>
</cfif>	